package com.example.studyPlatform.bean;

import java.io.Serializable;
import java.sql.Timestamp;


public interface TimeEntity {

    public Timestamp getCreateTime();

    public void setCreateTime(Timestamp createTime);

    public Timestamp getUpdateTime();

    public void setUpdateTime(Timestamp updateTime);

    default public Timestamp nowTime() {
        return new Timestamp(System.currentTimeMillis());
    }
}
